var host = window.location.protocol + "//" + window.location.host + "/";
var loca_Url = top.window.location.href.split("/");
if (loca_Url[3] != "common") {
	host += loca_Url[3] + "/";
}
var ctx = host;

document.write("<script src='" + host + "script/js/echart/js/jquery-3.2.1.min.js'></script>");
document.write("<script src='" + host + "script/js/layui/layui.all.js'></script>");
document.write("<script src='" + host + "script/js/layui/layui.js'></script>");
document.write("<script src='" + host + "script/js/jquery.cookie.js'></script>");
document.write("<script src='" + host + "script/js/echart/echarts.common.min.js'></script>");
document.write("<script src='" + host + "script/js/echart/js/theme/dark.js'></script>");
document.write("<script src='" + host + "script/js/echart/js/theme/shine.js'></script>");
document.write("<link href='" + host + "script/css/style.css' rel='stylesheet' type='text/css' ></link>");
document.write("<link href='" + host + "script/js/echart/css/style.css' rel='stylesheet' type='text/css' ></link>");
document.write("<link href='" + host + "script/js/layui/css/layui.css' rel='stylesheet' type='text/css' ></link>");
//document.write("<link href='" + host + "script/js/layui/css/layui.mobile.css' rel='stylesheet' type='text/css' ></link>");

function nvl(value) {
	return value ? value : "";
}
function alertObject(obj) {
	var str = [];
	for (var key in obj) {
		str.push(key + ":" + obj[key]);
	}
	alert(str.join(",\n"));
}